	//상세보기
	function clsClubAlbumView_View(){
		this.listData = null;
		this._HTMLDom = null;
		this._init();
	}
	
	clsClubAlbumView_View.prototype = {
		_init: function(){
			var $layer = $("section#club_album_view>section>ul");
			var $img = $("li.view_txt:eq(1) span.img_info");
			this._HTMLDom = {
				"$layer": $layer
				, "$img": $img
			}
			$layer.hide();		
			$layer.find("li.view_txt:eq(0)").hide();	
		}
		, setData: function(thisData){
			this.listData = thisData;
			this.display();
		}
		, setNiceshotList: function(thisData){
			this.listData["나이스샷"] = thisData;
			
			var $layer = this._HTMLDom["$layer"];
			$layer.find("li.bt_side div div a.bt_nice_l span span.ui-btn-text").html(thisData.length);
		}
		, display: function(){
			var $layer = this._HTMLDom["$layer"];
			var $img = this._HTMLDom["$img"];			
			var thisClass = this;
			
			$layer.find("li.sub div.con p:eq(0)").html(this.listData["제목"]["닉네임"]);
			$layer.find("li.bt_side div div a.bt_nice_l span span.ui-btn-text").html("0");
			$layer.find("li.sub time").html(_util.fDateYmd(this.listData["내용"]["작성일"]) +"&nbsp;"+ _util.fTime(this.listData["내용"]["작성시간"]));
			
			//본문내용 편집준비
			$layer.find("li.view_txt:eq(1)").empty();
			for(var i=0;i<this.listData["내용"]["업로드이미지"].length;++i){
				$layer.find("li.view_txt:eq(1)").append($img.clone(true));
			}
			
			$layer.find("li.view_txt:eq(1) img").each(function(n){
				$(this).attr("src", _util.getDefaultImage(thisClass.listData["내용"]["업로드이미지"][n]["파일명"])).width(600).css("cursor", "pointer");
			});
			
			//본문텍스트삽입
			$layer.find("li.view_txt span.img_info:last").after(this.listData["내용"]["내용"]);
			
			if(this.listData["내글"]=="Y" || this.listData["내상태"]){
				$layer.find("li.view_txt:eq(0)").show();
			}
			
			$layer.show();
		}
		, $getBtnDelete: function(){
			return this._HTMLDom["$layer"].find("li.view_txt:eq(0) a");	
		}
		, $getBtnNice: function(){
			return this._HTMLDom["$layer"].find("li.bt_side div div a:eq(0)");	
		}
		, $getBtnNiceMember: function(){
			return this._HTMLDom["$layer"].find("li.bt_side div div a:eq(1)");	
		}
		, $getBtnFb: function(){
			return this._HTMLDom["$layer"].find("li.bt_side div div button");
		}
		, $getLayer: function(){
			return this._HTMLDom["$layer"];
		}
	}	
	
	
	//댓글목록
	function clsClubAlbumView_Reply(){
		this.listData = null;
		this._HTMLDom = null;
		this.errMsg = null;
		this._ERRMSG = {
				"_NOVALUE" : "댓글을 입력해주십시요."
				, "_MAXLEN": "한글 100자 이내로 입력해주십시요."
		}
		this._init();
	}
	
	clsClubAlbumView_Reply.prototype = {
		_init: function(){
			var $layer =  $("section#club_album_view>section>div.reply_area");
			this._HTMLDom = {
				"$layer": $layer
				, "$element": $layer.find("ul>li:first")
			}
			
			$layer.find(">ul").empty();
			$layer.find("textarea").val("");
		}
		, setList: function(thisData){
			this.listData = thisData;
			this.display();
		}
		, setNiceshotList: function(n, thisData){
			this.listData[n]["나이스샷"] = thisData;
			this._HTMLDom["$layer"].find("p.nice mark").eq(n).html("("+ _util.fNum(thisData.length) +")");
		}
		, display: function(){
			var $layer = this._HTMLDom["$layer"];
			var $element = this._HTMLDom["$element"];
			var thisClass = this;
			
			$layer.find(">ul").empty();
			
			for(var i=0;i<this.listData.length;++i){
				$layer.find(">ul").append($element.clone(true));		
			}
			
			$layer.find(">ul li").each(function(n){
				$(this).find("img").attr("src", _util.getDefaultProfileImage(thisClass.listData[n]["이미지"]));
				$(this).find("h3").html(thisClass.listData[n]["닉네임"]);
				$(this).find("p:eq(0)").html(thisClass.listData[n]["내용"]);
				$(this).find("p.nice mark").html("(0)");
				$(this).find("time").html(_util.fDateYmd(thisClass.listData[n]["작성일"]) +"&nbsp;"+ _util.fTime(thisClass.listData[n]["작성시간"]));
				if(thisClass.listData[n]["본인글"]=="N") $(this).find("button").hide();	
			});
			
			$layer.find("h5 mark").html("("+ this.listData.length +")");
		}
		, $getBtnNice: function(){
			return this._HTMLDom["$layer"].find("ul li p.nice a");	
		}
		, $getBtnDelete: function(){
			return this._HTMLDom["$layer"].find("ul li button");
		}
		, $getBtnReg: function(){
			return this._HTMLDom["$layer"].find("div.reply_write form fieldset div:eq(1) a");
		}	
		, $getLayer: function(){
			return this._HTMLDom["$layer"];	
		}
		, getReplyText: function(){
			var txt = this._HTMLDom["$layer"].find("textarea").val();
			this._HTMLDom["$layer"].find("textarea").val("");
			return txt;
		}
		, isValid: function(){
			var txt = this._HTMLDom["$layer"].find("textarea").val().trim();			
			
			if(txt.length == 0){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;	
			}else if(_util.getByteLen(txt) > 100){
				this.errMsg = this._ERRMSG["_MAXLEN"];
				return false;	
			}
			return true;
		}
		, getError: function(){
			return this.errMsg;
		}
	}
	
	//데이터연동		
	function clsComm_ClubAlbumView(){
		this.clubBoardView = null;
		this.clubBoardViewNiceshot=null;
		this.clubBoardViewRequest = null; 
				
		this.clubBoardViewReply = null;
		this.clubBoardViewReplyNiceshot = null;
		this.clubBoardViewReplyRequest = null;
		this._init();
	}	
	clsComm_ClubAlbumView.prototype = {
		_init: function(){
			this.clubBoardViewRequest = {
		 		"동호회키" : null
		 		, "게시판키": null	
		 	}
		 	
		 	this.clubBoardViewReplyRequest = {
		 		"동호회키" : null
		 		, "게시판키": null	
		 		, "댓글키": null
		 	}
		}
//------------------------ 게시판상세------------------------//		
		, getClubAlbumView: function(){			
			var thisClass = this;
			
			var szBoardSeq = this.clubBoardViewRequest["게시판키"];
				
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","getDetailClubBoard");   
        					
        	objJson.putParameter("board_seq", szBoardSeq);
        	objJson.putParameter("modpage_yn", "N");
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				var items = ret["msp"]["contents"]["items"];
				
				if(items){									
					var arr = [];
					
					if(items["FileBean"] && items["FileBean"][0] && items["FileBean"][0]["items"]){
						if(!items["FileBean"][0]["items"].length){
							items["FileBean"][0]["items"] = new Array(items["FileBean"][0]["items"]);
						}
						
						for(var i=0;i<items["FileBean"][0]["items"].length;++i){
							arr.push({
								"파일키":_util.nvl(items["FileBean"][0]["items"][i]["file__seq"])
								, "섬네일": _util.nvl(items["FileBean"][0]["items"][i]["thumb"])
								, "파일명": _util.nvl(items["FileBean"][0]["items"][i]["path"]) + _util.nvl(items["FileBean"][0]["items"][i]["save__file__name"])
								, "원본파일명": _util.nvl(items["FileBean"][0]["items"][i]["orgn__file__name"])
							});	
						}
					}
					
					//동호회목록
					thisClass.clubBoardView = {
						"제목": {
							"제목": _util.nvl(items["title"])
							, "아이디": _util.nvl(items["reg__id"])
							, "이미지": _util.nvl(items["user__image"])
							, "닉네임" : _util.nvl(items["reg__nickname"])
							, "나이스샷" : _util.nvl(items["niceshot"])
						}
						, "내글": _util.nvl(items["my__article__yn"])
						, "내용" : {
							"내용": _util.nvl(items["content"])
							, "작성일": _util.nvl(items["reg__date"])
							, "작성시간": _util.nvl(items["reg__time"])
							, "조회수": _util.nvl(items["hit"])
							, "업로드이미지": arr
						}
						, "나이스샷": []
						, "공개유무": _util.nvl(items["view__type"])
						, "프로필": []
					};
				}
				
				$(thisClass).trigger("evtFinishClubAlbumView");
			}, function($err) {
				alert($err);
			});	
			
		}
		, getClubAlbumViewData: function(){
			return this.clubBoardView;
		}
		, setClubAlbumViewRequest: function(key, val){
			this.clubBoardViewRequest[key]=val;	
		}
//------------------------ 게시판상세------------------------//				
//------------------------ 게시판상세나이스샷------------------------//		
		, getClubAlbumViewNiceshot: function(){
			var thisClass = this;
			
			var szBoardSeq = this.clubBoardViewRequest["게시판키"];
				
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","getClubBoardNiceshot");   
        					
        	objJson.putParameter("board_seq", szBoardSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				thisClass.clubBoardViewNiceshot = [];				
				var items = ret["msp"]["contents"]["items"];
				
				if(items){
					
					if(!items.length){
						items = new Array(items);
					}
					
					for(var i=0;i<items.length;i++){
						var obj = items[i];
						
						//나이스샷					
						thisClass.clubBoardViewNiceshot.push({
							 "아이디": _util.nvl(obj["reg__id"])
							, "이미지": _util.nvl(obj["user__image"])
							, "닉네임":_util.nvl(obj["reg__nickname"])
						});
					}         
				}
				
				$(thisClass).trigger("evtFinishClubAlbumViewNiceshot");
			}, function($err) {
				alert($err);
			});	
		}
		, getClubAlbumViewNiceshotData: function(){
			return this.clubBoardViewNiceshot;
		}		
//------------------------ 게시판상세나이스샷------------------------//	
//------------------------ 게시판댓글------------------------//		
		, getClubAlbumViewReply: function(){			
			var thisClass = this;
			var szBoardSeq = this.clubBoardViewReplyRequest["게시판키"];
				
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","getClubCommentList");   
        	objJson.putPub("listcount",1000);
        	objJson.putPub("currpageno",1);
        					
        	objJson.putParameter("board_seq", szBoardSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
			
				thisClass.clubBoardViewReply = [];
				var items = ret["msp"]["contents"]["items"];
				
				if(items){
					
					if(!items.length){
						items = new Array(items);
					}
					
					for(var i=0;i<items.length;i++){
						var obj = items[i];
						
						//동호회목록
						thisClass.clubBoardViewReply.push({
							"게시판키": _util.nvl(obj["board__seq"])
							,  "댓글키": _util.nvl(obj["reply__seq"])
							, "아이디": _util.nvl(obj["reg__id"])
							, "이미지": _util.nvl(obj["user__image"])
							, "닉네임": _util.nvl(obj["reg__nickname"])
							, "내용": _util.enter2br(_util.nvl(obj["content"]))
							, "본인글": _util.nvl(obj["my__article__yn"])
							, "작성일": _util.nvl(obj["reg__date"])
							, "작성시간": _util.nvl(obj["reg__time"])
							, "나이스샷수": _util.nvl(obj["niceshot"])
							, "나이스샷": []
							, "프로필": []
						});
					}         
				}
				
				$(thisClass).trigger("evtFinishClubAlbumViewReply");
			}, function($err) {
				alert($err);
			});
			
		}
		, getClubAlbumViewReplyData: function(){			
			return this.clubBoardViewReply;
		}
		, setClubAlbumViewReplyRequest: function(key, val){
			this.clubBoardViewReplyRequest[key]=val;
		}		
//------------------------ 게시판댓글------------------------//
//------------------------ 게시판댓글나이스샷------------------------//		
		, getClubAlbumViewReplyNiceshot: function(arg){
			var thisClass = this;
			
			var szBoardSeq = this.clubBoardViewReplyRequest["게시판키"];
			var szReplySeq = arg["댓글키"]
			var idx = arg["인덱스"]
			
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","getClubBoardNiceshot");   
        					
        	objJson.putParameter("board_seq", szBoardSeq);
        	objJson.putParameter("reply_seq", szReplySeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				var arr = [];				
				var items = ret["msp"]["contents"]["items"];
				
				if(items){
				
					if(!items.length){
						items = new Array(items);
					}
					
					for(var i=0;i<items.length;i++){
						var obj = items[i];
						
						//나이스샷						
						arr.push({
							 "아이디": _util.nvl(obj["reg__id"])
							, "이미지": _util.nvl(obj["user__image"])
							, "닉네임":_util.nvl(obj["reg__nickname"])
						});
					}
				}
				
				$(thisClass).trigger("evtFinishClubAlbumViewReplyNiceshot", [arg, arr]);
			}, function($err) {
				alert($err);
			});
		}
		, getClubAlbumViewReplyNiceshotData: function(idx){
			return this.clubBoardViewReplyNiceshot[idx];
		}
		
//------------------------ 게시판댓글나이스샷------------------------//	
//------------------------ 게시글삭제------------------------//		
		//게시글삭제
		, deleteBoard: function(arg){
			var thisClass = this;
			var szBoardSeq = arg["게시판키"];
			
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","deleteClubBoard");   
        					
        	objJson.putParameter("board_seq", szBoardSeq);
			_util.ajaxLog(objJson.getJsonString());
			cm.requestGet(objJson.getJsonString(), function(ret){
			
				var ret = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishCUDBoard", [ret]);
			}, function($err) {
				alert($err);
			});				
		}
//------------------------ 게시글삭제------------------------//	
//------------------------ 댓글등록------------------------//			
		, InsertBoardViewReply: function(arg){
			var thisClass = this;
			var szBoardSeq = arg["게시판키"];
			var szReplyContens = arg["내용"];
						
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","regClubComment");   
        					
        	objJson.putParameter("board_seq", szBoardSeq);
        	objJson.putParameter("content", szReplyContens);
			_util.ajaxLog(objJson.getJsonString());
			cm.requestGet(objJson.getJsonString(), function(ret){
				var ret = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishCUDBaordViewReply",[ret]);
			}, function($err) {
				alert($err);
			});
		}
//------------------------ 댓글등록------------------------//			
//------------------------ 댓글삭제------------------------//
		, DeleteBoardViewReply: function(arg){
			var thisClass = this;
			var szClubSeq = arg["동호회키"];
			var szBoardSeq = arg["게시판키"];
			var szReplySeq = arg["댓글키"];
			
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","deleteClubComment");   
        					
        	objJson.putParameter("board_seq", szBoardSeq);
        	objJson.putParameter("reply_seq", szReplySeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
			
				var ret = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishCUDBaordViewReply",[ret]);
			}, function($err) {
				alert($err);
			});
		}		
//------------------------ 댓글삭제------------------------//		
//------------------------ 게시판글 나이스샷 등록------------------------//	
		, InsertBoardViewNiceshot: function(arg){
			var thisClass = this;
			var szBoardSeq = arg["게시판키"];
						
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","updateNiceshot");   
        					
        	objJson.putParameter("board_seq", szBoardSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				var ret = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)					
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishInsertBaordViewNiceshot",[ret]);
				
			}, function($err) {
				alert($err);
			});
		}
//------------------------ 게시판글 나이스샷 등록------------------------//	
//------------------------ 댓글 나이스샷 등록------------------------//			
		, InsertBoardViewReplyNiceshot: function(arg){
			var thisClass = this;
			var szBoardSeq = arg["게시판키"];
			var szReplySeq = arg["댓글키"];
			var idx = arg["인덱스"];
						
			var objJson = new MJson();
        	var cm = new ConnectionManager();

			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CB001");
        	objJson.putPub("servicename","updateNiceshot");   
        					
        	objJson.putParameter("board_seq", szBoardSeq);
        	objJson.putParameter("reply_seq", szReplySeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
			
				var ret = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
					, "게시판키": szBoardSeq
					, "댓글키": szReplySeq
					, "인덱스": idx
				}
				
				$(thisClass).trigger("evtFinishInsertBaordViewReplyNiceshot",[ret]);
			}, function($err) {
				alert($err);
			});
		}
//------------------------ 댓글 나이스샷 등록------------------------//				
	}
	
	//컨트롤파일
	function ClubAlbumView(){				
		this.objComm = null;
		this.club_seq = null;	
		this.club_info = null;		
		
		this.objClubAlbumView_View = null;
		this.objClubAlbumView_Reply = null;
	};
	
	ClubAlbumView.prototype = {
	    onPageShow : function() {	    
	    	$("a").attr("href", "").attr("data-rel", "");      
	    	this._init();	    		    	
	    }
	    , _beforeStart: function(){
	    	var 	thisClass = this;
	    	
	    	this._permitStart = {
				"동호회정보": false	
			}
			
	  		// 서버 메시지맵
			$.ajax({
				url: "../js/src/club/club_inc.js"
				, type: "get"
				, dataType: "script"
				, async: false
				, success: function(ret, sta){
					//alert("success!!");					
				}
				, error:function(e){
					alert("error=" + e);
				}	
			});
			
			_cb.getClubInfoData({
				"콜백": function(ret, l){
					thisClass._permitStart["동호회정보"] = true;	
				}
			});
			
			_util.executeThread(function(){
				for(key in thisClass._permitStart){		
					if(!thisClass._permitStart[key]) return false;
				}
				return (true);
			}, function(){			
				thisClass._start();
			});
	    }
	    , _init: function(){	    	    	
	    		    	
	    	this.objComm = new clsComm_ClubAlbumView();
			this.objClubAlbumView_View = new clsClubAlbumView_View();
			this.objClubAlbumView_Reply = new clsClubAlbumView_Reply();
		
	      this.getParam();
	      
	      this._beforeStart();
	    	
	    	this._role();
	       
	      	this._bind();	 
	      	this._eventFinish();     	
	    }
	    , _start: function(){	    	
	    	//동호회기본정보
	    	this.club_info = _cb.getClubInfo();
	    	
	    	//게시글목록
	    	this.spinStart();
	    	this.objComm.setClubAlbumViewRequest("동호회키", this.club_seq);
	    	this.objComm.setClubAlbumViewRequest("게시판키", this.board_seq);
	    	this.objComm.getClubAlbumView();
	    	
	    	//댓글목록
	    	this.objComm.setClubAlbumViewReplyRequest("게시판키", this.board_seq);
	    	this.objComm.getClubAlbumViewReply();
	    	
	    }
	    , _eventFinish: function(){
	    	var thisClass = this;
	    	
	    	// 게시판상세보기 조회 완료이벤트
			$(this.objComm).bind("evtFinishClubAlbumView", function(){
				var thisData = thisClass.objComm.getClubAlbumViewData();				
				thisClass.objClubAlbumView_View.setData(thisData);				
				thisClass.spinEnd();		
						
				thisClass.objComm.getClubAlbumViewNiceshot();
			});
			
			// 게시판상세-나이스샷 조회 완료이벤트
			$(this.objComm).bind("evtFinishClubAlbumViewNiceshot", function(){
				var thisData = thisClass.objComm.getClubAlbumViewNiceshotData();							
				thisClass.objClubAlbumView_View.setNiceshotList(thisData);
				thisClass.spinEnd();
			});
			
			// 게시판상세보기댓글 조회 완료이벤트
			$(this.objComm).bind("evtFinishClubAlbumViewReply", function(){		
				var thisData = thisClass.objComm.getClubAlbumViewReplyData();
				thisClass.objClubAlbumView_Reply.setList(thisData);				
				
				//나이스샷
				for(var i=0;i<thisData.length;++i){										
					thisClass.objComm.getClubAlbumViewReplyNiceshot({
						"댓글키":thisData[i]["댓글키"]
						, "인덱스": i
					});
				}
				
				thisClass.spinEnd();
			});
			
			// 게시판상세보기댓글-나이스샷 조회 완료이벤트
			$(this.objComm).bind("evtFinishClubAlbumViewReplyNiceshot", function(event, arg, arr){				
				thisClass.objClubAlbumView_Reply.setNiceshotList(arg["인덱스"],arr);				
			});
			
			// 게시판글 삭제 완료이벤트
			$(this.objComm).bind("evtFinishCUDBoard", function(event, resData){				
				alert(resData["메세지"]);				
				if(!resData["응답코드"]) return;		
				_gf.CLUB_DATA = {
					"동호회키": thisClass.club_seq	
				}		
				$.mobile.changePage("club_album.html","slide",true);	
			});
			
			// 게시판상세보기댓글 등록/삭제 완료이벤트
			$(this.objComm).bind("evtFinishCUDBaordViewReply", function(event, resData){				
				alert(resData["메세지"]);								
				if(!resData["응답코드"]) return;								
				thisClass.objComm.getClubAlbumViewReply();			
			});
			
			// 게시판상세-나이스샷 등록 완료이벤트
			$(this.objComm).bind("evtFinishInsertBaordViewNiceshot", function(event, resData){				
				thisClass.spinEnd();
				alert(resData["메세지"]);				
				if(!resData["응답코드"]) return;				
				thisClass.objComm.getClubAlbumViewNiceshot();
				thisClass.spinStart();
			});
			
			// 댓글-나이스샷 등록 완료이벤트
			$(this.objComm).bind("evtFinishInsertBaordViewReplyNiceshot", function(event, resData){				
				thisClass.spinEnd();		
				alert(resData["메세지"]);				
				if(!resData["응답코드"]) return;					
				thisClass.objComm.getClubAlbumViewReplyNiceshot({
						"댓글키":resData["댓글키"]
						, "인덱스": resData["인덱스"]
				});
			});
	    }
		 , _bind: function(){
		 	var thisClass = this;		 	
					 	
			//상세보기-게시글삭제
		 	this.objClubAlbumView_View.$getBtnDelete().click(function(event){
		 		event.preventDefault();
		 		
		 		if(!confirm("게시물을 삭제 하시겠습니까?")) return;
		 		
		 		var submitData = {
		 			"동호회키": thisClass.club_seq	
		 			, "게시판키": thisClass.board_seq	
		 		}
		 		thisClass.spinStart();
		 		thisClass.objComm.deleteBoard(submitData);		 		
		 	});
		 	
		 	//상세보기-나이스샷
		 	this.objClubAlbumView_View.$getBtnNice().click(function(event){
		 		event.preventDefault();
		 		
		 		if(!_util.getLogin("아이디")){		 			
		 			thisClass.goLogin();
		 			return;
		 		}else if(!thisClass.club_info.isMember()){
		 			alert("동호회에 가입되지 않은 회원은 이용하실 수 없습니다.");	
		 			return;
		 		}
		 		
		 		var n = thisClass.objClubAlbumView_View.$getBtnNice().find("p.nice a").index($(this));
		 		var submitData = {
		 			"동호회키": thisClass.club_seq
		 			, "게시판키": thisClass.board_seq
		 		}		 		
		 		thisClass.spinStart();
		 		thisClass.objComm.InsertBoardViewNiceshot(submitData);
		 	});
		 	
		 	//상세보기-나이스샷상세
		 	this.objClubAlbumView_View.$getBtnNiceMember().click(function(event){
		 		event.preventDefault();
		 		
		 		if(thisClass.objClubAlbumView_View.listData["나이스샷"].length==0) return;
		 		
		 		_gf.COURSE_DATA = {
		 			"동호회키": thisClass.club_seq
		 			, "게시판키": thisClass.board_seq
		 			, "서비스아이디": "CB001"
		 			, "서비스명": "getClubBoardNiceshot"
		 		}
		 
		 		$.mobile.changePage("../course/nice_shot.html","slide",true);	
		 	});
		 	
		 	//상세보기-페북공유
		 	this.objClubAlbumView_View.$getBtnFb().click(function(event){
		 		event.preventDefault();
		 		alert("페북공유");
		 	});
		 	
		 	//상세보기-사진크게보기
		 	this.objClubAlbumView_View.$getLayer().on("click", "img, span.btn14", function(event){
		 		event.preventDefault();
		 		//사진클릭시
		 		var n = thisClass.objClubAlbumView_View.$getLayer().find("img").index($(this));
		 		if(n == -1){
		 			//돋보기 클릭시
		 			n = thisClass.objClubAlbumView_View.$getLayer().find("span.btn14").index($(this));
		 		}
		 		var src = thisClass.objClubAlbumView_View.$getLayer().find("img").eq(n).attr("src");
		 		
		 		_gf.COURSE_DATA = {
		 			"이미지" : src
		 		}
		 		$.mobile.changePage("../inc/img_view.html","slide",true);
		 	});
		 	
		 	//댓글목록-나이스샷
		 	this.objClubAlbumView_Reply.$getLayer().on("click", "p.nice a", function(event){
		 		event.preventDefault();
		 		var n = thisClass.objClubAlbumView_Reply.$getLayer().find("p.nice a").index($(this));
		 		var submitData = {
		 			"동호회키": thisClass.club_seq
		 			, "게시판키": thisClass.board_seq
		 			, "댓글키": thisClass.objClubAlbumView_Reply.listData[n]["댓글키"]
		 			, "인덱스": n
		 		}
		 		
		 		thisClass.spinStart();
		 		thisClass.objComm.InsertBoardViewReplyNiceshot(submitData);
		 	});
		 	
		 	//댓글목록-나이스샷 상세
		 	this.objClubAlbumView_Reply.$getLayer().on("click", "mark", function(event){
		 		event.preventDefault();
		 		var n = thisClass.objClubAlbumView_Reply.$getLayer().find("ul mark").index($(this));
		 		
		 		if(thisClass.objClubAlbumView_Reply.listData[n]["나이스샷"].length==0) return;
		 		
		 		_gf.COURSE_DATA = {
		 			"동호회키": thisClass.club_seq
		 			, "게시판키": thisClass.board_seq
		 			, "댓글키": thisClass.objClubAlbumView_Reply.listData[n]["댓글키"]
		 			, "서비스아이디": "CB001"
		 			, "서비스명": "getClubBoardNiceshot"
		 		}
		 		
		 		$.mobile.changePage("../course/nice_shot.html","slide",true);	
		 	});
		 	
		 	//댓글목록-삭제
		 	this.objClubAlbumView_Reply.$getLayer().on("click", "button", function(event){
		 		event.preventDefault();
		 		var n = thisClass.objClubAlbumView_Reply.$getLayer().find("button").index($(this));
		 		
		 		var submitData = {
		 			"동호회키": thisClass.club_seq
		 			, "게시판키": thisClass.board_seq
		 			, "댓글키": thisClass.objClubAlbumView_Reply.listData[n]["댓글키"]
		 		}
		 				 		
		 		thisClass.spinStart();
		 		thisClass.objComm.DeleteBoardViewReply(submitData);
		 	});
		 	
		 	//댓글목록-등록
		 	this.objClubAlbumView_Reply.$getBtnReg().click(function(event){
		 		event.preventDefault();
		 		
		 		if(!_util.getLogin("아이디")){		 			
		 			thisClass.goLogin();
		 			return;
		 		}else if(!thisClass.club_info.isMember()){
		 			alert("동호회에 가입되지 않은 회원은 이용하실 수 없습니다.");	
		 			return;
		 		}else if(!thisClass.objClubAlbumView_Reply.isValid()){
		 			alert(thisClass.objClubAlbumView_Reply.getError());
		 			return;	
		 		}
		 		
		 		var submitData = {
		 			"동호회키": thisClass.club_seq
		 			, "게시판키": thisClass.board_seq
		 			, "내용": thisClass.objClubAlbumView_Reply.getReplyText()
		 		}
		 		
		 		thisClass.spinStart();
		 		thisClass.objComm.InsertBoardViewReply(submitData);
		 	});
		 	
		 	//메뉴
		 	$("section#club_album_view nav ul li a:eq(0)").click(function(event){
		 		event.preventDefault();
		 		thisClass.goNavi();
		 	});
		 	
		 	//알림
		 	$("section#club_album_view nav ul li:eq(1)").click(function(event){
		 		event.preventDefault();
		 		$.mobile.changePage("../inc/info_booking.html","slide",true);	
		 	});
		 	
		 	//이전
		 	$("section#club_album_view header div.top_title_B div.top_left a.btn10").click(function(event){
		 		event.preventDefault();
		 		_gf.CLUB_DATA = {
					"동호회키": thisClass.club_seq	
				}
		 		$.mobile.changePage("club_album.html","slide",true);	
		 	});
		 }
		 , getParam: function(){
	    	this.club_seq = _gf.CLUB_DATA["동호회키"];
	    	this.board_seq = _gf.CLUB_DATA["게시판키"];
	    }
	    , _role: function(){
	    		
	   }
		, goNavi: function(){			
			$.mobile.changePage("../inc/navi.html","slide",true);
		}
		, goLogin: function(_url){
			_gf.LOGIN_DATA.loginAfterUrl = "../club/club_album_view.html";
			if(_url) _gf.LOGIN_DATA.loginAfterUrl = _url;
			$.mobile.changePage("../member/login.html","slide",true); 
		}
	    , spinStart: function(){		
			$.mobile.showPageLoadingMsg();			
		}
		, spinEnd: function(){			
	 		$.mobile.hidePageLoadingMsg();				
		}
	}	